package demo0917;

import java.util.concurrent.*;

public class T8_0524 {
    public static void main(String[] args) {
        BlockingQueue queue = new ArrayBlockingQueue(100);
        ThreadPoolExecutor poolExecutor = new ThreadPoolExecutor(5, 10, 10000, TimeUnit.MILLISECONDS, queue, new ThreadPoolExecutor.DiscardPolicy());
        poolExecutor.submit(new Runnable() {
            @Override
            public void run() {
                System.out.println("hello");
            }
        });
        poolExecutor.shutdown();
    }
}
